# Contributor: Danilo Falcão <danilo@falcao.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-mongo
_pkgname=pymongo
pkgver=3.12.1
pkgrel=1
pkgdesc="Python3 driver for MongoDB"
url="https://github.com/mongodb/mongo-python-driver"
arch="all"
license="Apache-2.0"
makedepends="python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-mongo" # Backwards  compatibility
provides="py-mongo=$pkgver-r$pkgrel" # Backwards  compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
36294f9437c91e5ea744452e0dc1049be65706dced61a296dfae09d32e31aae0276da2bb059a5548569e6cde62f66b935f2a422f297a3eabf0b928cfee07d060  pymongo-3.12.1.tar.gz
"
